home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / t3dsrc.lha / SMakefile < prev    next >
Makefile  |  1994-01-20  |  5KB  |  173 lines

  1. # SMakefile for T3DLIB
  2. # $Id: SMakefile,v 1.16 1994/01/20 22:33:29 glewis Exp glewis $
  3.  
  4. REV=R42
  5. C_SRCS=read.c write.c readtddd.c writeray.c writeps.c writemif.c writevort.c \
  6.        writenff.c writeoff.c writedxf.c sort.c freeworld.c merge.c writeim.c \
  7.        writepov.c writelwob.c readlwob.c writetsipp.c
  8. # OBJS=${C_SRCS:.c=.o}
  9. OBJS=  read.o write.o readtddd.o writeray.o writeps.o writemif.o writevort.o \
  10.        writenff.o writeoff.o writedxf.o sort.o freeworld.o merge.o writeim.o \
  11.        writepov.o writelwob.o readlwob.o writetsipp.o
  12. EXES=readwrite tddd2off tddd2nff tddd2vort tddd2ray tddd2ps \
  13.     tddd2mif tddd2dxf tddd2pov tddd2tsipp
  14. REGEXES=spherize mbb set_texture_path set_brush_path
  15. #
  16. # For the Amiga, using SAS/C 6.50...
  17. #
  18. BIN=bin:
  19. CC=sc
  20. CFLAGS=
  21. GST=t3d.gst
  22. LDLIBS=t3d.lib
  23. LDFLAGS=
  24. AR=oml
  25. AROPTS=
  26. RANLIB=ranlib
  27. LINKFLAGS=link
  28. RM=delete
  29. #
  30. # For UNIX,
  31. #
  32. # CC=gcc
  33. # CFLAGS=-g -ansi
  34. # GST= # t3d.gst
  35. # LDLIBS=libt3d.a
  36. # LDFLAGS=/usr/ucblib/libucb.a -lm
  37. # AR=ar
  38. # AROPTS=rcu
  39. # RANLIB=ranlib
  40. # LINKFLAGS=-o $@
  41. # RM=rm
  42.  
  43. .c.o:
  44.     $(CC) $(CFLAGS) DEFINE=REV="$(REV)" $*.c
  45.  
  46. all: $(LDLIBS) $(EXES)
  47.     @echo " "
  48.     @echo 'Thank you for supporting this Shareware by sending your 25 (US) dollars to:'
  49.     @echo " "
  50.     @echo "Glenn M. Lewis"
  51.     @echo "8341 Olive Hill Court"
  52.     @echo "Fair Oaks, CA  95628"
  53.     @echo "(USA)"
  54.     @echo "glewis@netcom.com"
  55.     @echo " "
  56.  
  57. release:
  58.     smake clean
  59.     smake "CFLAGS=CPU=ANY MATH=IEEE NoDebug Optimize" OTHER=EXE lha
  60. #    smake clean
  61. #    smake "CFLAGS=CPU=68020 MATH=68881 NoDebug NoOptimize" OTHER=FPU lha
  62.  
  63. reg: $(REGEXES) bumpit TexIt
  64.  
  65. install: all reg
  66.     copy readwrite    $(BIN)
  67.     copy tddd2off    $(BIN)
  68.     copy tddd2tsipp    $(BIN)
  69.     copy tddd2nff    $(BIN)
  70.     copy tddd2vort    $(BIN)
  71.     copy tddd2ray    $(BIN)
  72.     copy tddd2ps    $(BIN)
  73.     copy tddd2mif    $(BIN)
  74.     copy tddd2dxf    $(BIN)
  75.     copy tddd2pov    $(BIN)
  76.     copy spherize    $(BIN)
  77.     copy mbb    $(BIN)
  78.     copy set_texture_path    $(BIN)
  79.     copy set_brush_path    $(BIN)
  80.  
  81.  
  82. $(OBJS): t3dlib.h $(GST)
  83. bumpit.o    : noise.h
  84. noise.o     : noise.h
  85. write.o     : write.c     t3dlib.h $(GST)
  86. overlay_stub.o : overlay_stub.a
  87.     asm overlay_stub.a
  88. #
  89.  
  90. t3d.gst: t3dlib.h SCOPTIONS
  91.     sc mgst=t3d.gst $(CFLAGS) dummygst.c
  92.  
  93. $(LDLIBS): $(OBJS)
  94.     $(AR) $(AROPTS) $(LDLIBS) $(OBJS)
  95. #    $(RANLIB) $(LDLIBS)
  96.  
  97. $(REGEXES) $(EXES): $(LDLIBS)
  98.     $(CC) $(CFLAGS) $(LINKFLAGS) $>.c $(LDLIBS) $(LDFLAGS)
  99.  
  100. bumpit: noise.o $(LDLIBS)
  101.     $(CC) $(CFLAGS) $(LINKFLAGS) $>.c noise.o $(LDLIBS) $(LDFLAGS)
  102.  
  103. TexIt: overlay_stub.o $(LDLIBS)
  104.     $(CC) $(CFLAGS) $(LINKFLAGS) $>.c overlay_stub.o $(LDLIBS) $(LDFLAGS)
  105.  
  106. clean:
  107.     delete *.o *.lnk $(LDLIBS) $(EXES) $(REGEXES) bumpit TexIt t3d.gst
  108.  
  109. .1.doc:
  110.     anro -mman:an.nro $*.1 > $*.doc
  111.  
  112. bumpit.doc           : bumpit.1
  113. mbb.doc              : mbb.1
  114. readwrite.doc        : readwrite.1
  115. set_brush_path.doc   : set_brush_path.1
  116. set_texture_path.doc : set_texture_path.1
  117. spherize.doc         : spherize.1
  118. tddd2dxf.doc         : tddd2dxf.1
  119. tddd2mif.doc         : tddd2mif.1
  120. tddd2nff.doc         : tddd2nff.1
  121. tddd2off.doc         : tddd2off.1
  122. tddd2tsipp.doc       : tddd2tsipp.1
  123. tddd2pov.doc         : tddd2pov.1
  124. tddd2ps.doc          : tddd2ps.1
  125. tddd2ray.doc         : tddd2ray.1
  126. tddd2vort.doc        : tddd2vort.1
  127. texit.doc            : texit.1
  128.  
  129. man: readwrite.doc tddd2off.doc tddd2nff.doc tddd2vort.doc tddd2ray.doc \
  130.      tddd2ps.doc tddd2mif.doc tddd2dxf.doc tddd2pov.doc texit.doc \
  131.      bumpit.doc spherize.doc mbb.doc set_texture_path.doc set_brush_path.doc \
  132.      tddd2tsipp.doc
  133.  
  134. lha: publha reglha
  135.  
  136. publha: all man
  137.     -$(RM) T3DLIB_Src_$(REV).lha
  138.     lha a T3DLIB_Src_$(REV).lha README.$(REV) CHANGES SMakefile SCOPTIONS t3dlib.h \
  139.         Makefile read.c write.c readtddd.c writeray.c writeps.c \
  140.         writemif.c writevort.c writenff.c writeoff.c writedxf.c sort.c \
  141.         freeworld.c merge.c writeim.c writepov.c writelwob.c readlwob.c \
  142.         tddd2lwob.c tddd2pov.c tddd2dxf.c tddd2nff.c tddd2off.c tddd2vort.c \
  143.         tddd2ray.c tddd2ps.c tddd2mif.c readwrite.c \
  144.         read_protos.h write_protos.h readtddd_protos.h writeray_protos.h \
  145.         writeps_protos.h writemif_protos.h writevort_protos.h \
  146.         writenff_protos.h writeoff_protos.h writedxf_protos.h sort_protos.h \
  147.         freeworld_protos.h merge_protos.h writeim_protos.h \
  148.         writepov_protos.h writelwob_protos.h readlwob_protos.h \
  149.         tddd2lwob_protos.h tddd2pov_protos.h tddd2dxf_protos.h \
  150.         tddd2nff_protos.h tddd2off_protos.h tddd2vort_protos.h \
  151.         tddd2ray_protos.h tddd2ps_protos.h tddd2mif_protos.h \
  152.         readwrite_protos.h
  153.     -$(RM) T3DLIB_$(OTHER)_$(REV).lha
  154.     lha a T3DLIB_$(OTHER)_$(REV).lha README.$(REV) CHANGES \
  155.         $(LDLIBS) readwrite tddd2off tddd2nff tddd2vort tddd2ray tddd2ps \
  156.         tddd2mif tddd2dxf tddd2pov tddd2tsipp \
  157.         readwrite.doc tddd2off.doc tddd2nff.doc tddd2vort.doc tddd2ray.doc \
  158.         tddd2ps.doc tddd2mif.doc tddd2dxf.doc tddd2pov.doc \
  159.         readwrite.1 tddd2off.1 tddd2nff.1 tddd2vort.1 tddd2ray.1 tddd2ps.1 \
  160.         tddd2mif.1 tddd2dxf.1 tddd2pov.1 \
  161.         bumpit.doc spherize.doc mbb.doc set_texture_path.doc set_brush_path.doc \
  162.         texit.doc texit.1 tddd2tsipp.1 tddd2sipp.doc \
  163.         bumpit.1 spherize.1 mbb.1 set_texture_path.1 set_brush_path.1
  164.  
  165.  
  166. reglha: reg
  167.     -$(RM) T3DLIB_Reg_$(OTHER)_$(REV).lha
  168.     lha a T3DLIB_Reg_$(OTHER)_$(REV).lha \
  169.         bumpit spherize mbb set_texture_path set_brush_path texit \
  170.         bumpit.c spherize.c mbb.c set_texture_path.c set_brush_path.c \
  171.         noise.c bumpit_protos.h spherize_protos.h mbb_protos.h \
  172.         set_texture_path_protos.h set_brush_path_protos.h noise.h
  173.